package com.yongchun.commons.enums;


import com.yongchun.commons.StringUtil;

/**
 * @author afeng
 * @version 1.0
 * @date 2023/2/22 下午5:58
 */
public enum WechatAppNameEnum {
    XUAN_RUI("wxc31930e6965e2d5f", "轩睿"),
    WEI_JUN("wxa16b486ee8fc0c8e", "维钧"),
    HU_NAN_QI_SHUI("wxc5f1e40c659fd801", "湖南祺穗"),
    ;


    private String type;
    private String desc;

    WechatAppNameEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getWechatAppName(String type) {
        for (WechatAppNameEnum var : WechatAppNameEnum.values()) {
            if(StringUtil.equal(type,var.getType()))
                return var.getDesc();
        }
        return "---";
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
